Clarify the docs for gtk_widget_class_set_css_name
authorMatthias Clasen <mclasen@redhat.com>
Wed, 2 Dec 2020 15:06:01 +0000 (10:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 2 Dec 2020 15:06:01 +0000 (10:06 -0500)
Reword, and mention the default css name.

gtk/gtkwidget.c

index 239e9ff929b998f34cf7b1ec74bf5752c1fa1871..89635ba8dc6f9e7b3c7f36c9e180356440634eca 100644 (file)
@@ -10356,7 +10356,8 @@ _gtk_widget_get_sizegroups (GtkWidget    *widget)
  * Sets the name to be used for CSS matching of widgets.
  *
  * If this function is not called for a given class, the name
- * of the parent class is used.
+ * set on the parent class is used. By default, GtkWidget uses
+ * the name "widget".
  */
 void
 gtk_widget_class_set_css_name (GtkWidgetClass *widget_class,